<template>
  <block v-if="helper.retryModalVisible">
    <Modal
      v-model:visible="helper.retryModalVisible.value"
      :ok-text="$t('Appliance.Settings.FirmwareUpgrade.UpgradeFailed.Retry.Button.Text')"
      @close="helper.allowUpgrade"
    >
      <text>{{ $t('Appliance.Settings.FirmwareUpgrade.UpgradeFailed.Retry.Title') }}</text>
    </Modal>
  </block>
</template>

<script setup lang="ts">
import Modal from '@/common/modal.vue'
import type { OTAHelper } from '../helpers/types'

defineProps<{
  helper: OTAHelper
}>()
</script>
